import java.util.Scanner;


public class Practice_programs {

	public static void main(String args[]){
		
		
	
	//palindrome_string();
		
	//palindrome_int();
	//even_odd();
		//prime_num();
		//find_factorial();
		bubble_sort();
	}
	
	//Palindrome String meathod
	public static void palindrome_string(){
		
		Scanner st= new Scanner(System.in);
		System.out.println("Please enter the String value");
		String str= st.nextLine();
		String rev="";
		int length;
		length=str.length();
		
		for (int i=length-1;i>=0;i--){
			rev=rev+str.charAt(i);
			//System.out.println(rev);
		}
		if(str.equalsIgnoreCase(rev)){
			System.out.println("The string is palindrome");
		}
		else{
			
			System.out.println("The string is not palindrome");
			
			
		}}
	
	//Palindrome Integer meathod
		
		public static void palindrome_int(){
			Scanner in= new Scanner(System.in);
			
			System.out.println("Please enter the Integer value");
			
			int val=in.nextInt();
		
			int rev=0;
			int val1=val;
			for(int i=0;i<val;i++){
				int r=val%10;
				val=val/10;
				rev=(rev*10)+r;
			}
			if(val1==rev){
				System.out.println("Palindrome");
			}
			else{
				System.out.println("Not a Palindrome");
				
		}}
		
		//Ever or ODD
			public static void even_odd(){
				
				Scanner eo= new Scanner(System.in);
				
				System.out.println("Please enter 1st number");
				int v1=eo.nextInt();
				
			if(v1%2==0){
				System.out.println("Even");
			}else{
				System.out.println("ODD");
			}
		
		}
		// prime numbers
			
			public static void prime_num(){
				
            Scanner p= new Scanner(System.in);
				
				System.out.println("Please enter number");	
				int a=p.nextInt();
				
				//for(int i=2;i<a;i++){
					if (a%2==0){
						System.out.println("Not prime number"+a);
					}else{
						System.out.println("Prime number"+a);
					}
				//}
			
			}

			
			//Find factorial

public static void find_factorial(){
	
	int n, c, fact = 1;
	 
    System.out.println("Enter an integer to calculate it's factorial");
    Scanner in = new Scanner(System.in);

    n = in.nextInt();

    if ( n < 0 )
       System.out.println("Number should be non-negative.");
    else
    {
       for ( c = 1 ; c <= n ; c++ )
          fact = fact*c;

       System.out.println("Factorial of "+n+" is = "+fact);
    }
 }
	//bubble sort

public static void bubble_sort(){
	
	int num[]= new int[3];
	int temp;
	Scanner in= new Scanner(System.in);
	
	System.out.println("Please enter 3 numbers");
	
	for(int i=0;i<=num.length;i++){
		num[i]=in.nextInt();
		for (int m=0;m<num.length;m++){
			for(int n=0;n<num.length;n++){
			if(num[i]<num[n]){
				temp=num[i];
				num[i]=num[n];
				num[n]=temp;
				
			}
			for(int p=0;p<num.length;p++){
				System.out.println(-1);
				System.out.println("The Bubble sort result is "+num[i]);
			}
				
			}
				
		}
		
	}
	
}
}






